package qianmo.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import qianmo.common.core.annotation.Excel;
import qianmo.common.core.web.domain.BaseEntity;

import javax.xml.crypto.Data;
import java.util.Date;

/**
 * 题目练习记录对象 question_practice_record
 * 
 * @author qianmo
 * @date 2025-03-23
 */
public class QuestionPracticeRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 自增主键ID */
    private Long id;

    /** 题目ID */
    @Excel(name = "题目ID")
    private Long questionId;

    /** 学生ID */
    @Excel(name = "学生ID")
    private Long studentId;

    /** 作答答案 */
    @Excel(name = "作答答案")
    private String answer;

    /** 答案分数 */
    @Excel(name = "答案分数")
    private Long answerScore;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setQuestionId(Long questionId) 
    {
        this.questionId = questionId;
    }

    public Long getQuestionId() 
    {
        return questionId;
    }

    public void setStudentId(Long studentId) 
    {
        this.studentId = studentId;
    }

    public Long getStudentId() 
    {
        return studentId;
    }

    public void setAnswer(String answer)
    {
        this.answer = answer;
    }

    public String getAnswer()
    {
        return answer;
    }

    public void setAnswerScore(Long answerScore) 
    {
        this.answerScore = answerScore;
    }

    public Long getAnswerScore() 
    {
        return answerScore;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("questionId", getQuestionId())
            .append("studentId", getStudentId())
            .append("answer", getAnswer())
            .append("answerScore", getAnswerScore())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
